package no.uib.kwikktaim;

import java.io.File;

import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

import no.uib.kwikktaim.gui.MainWindow;

/**
 * The class containing the main method, which starts the show.
 *
 */
public class kwikktaim {

	/**
	 * Main-method. Starts the show.
	 */
	public static void main(String[] args) {

		// Use native look and feel:)
		try {
			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		} catch (InstantiationException e) {
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			e.printStackTrace();
		} catch (UnsupportedLookAndFeelException ex) {
			System.out.println("Unable to load native look and feel");
		}

		// Set up the cache dir
	    if ((new File("cache")).mkdir()) {
	    	System.out.println("Cache dir created");
	    }

	    // Init our main window
		MainWindow mw = new MainWindow();

	}
}
